import IUserCenterUpdateEmailForm from '@/model/form/userCenter/IUserCenterUpdateEmailForm'
import IUserCenterUpdatePasswordForm from '@/model/form/userCenter/IUserCenterUpdatePasswordForm'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 修改邮箱
export default function userCenterUpdateEmailApi(
  form: IUserCenterUpdateEmailForm
) {
  return $http.post<IResVO, AxiosResponse<IResVO>, IUserCenterUpdateEmailForm>(
    '/userCenter/updateEmail',
    form
  )
}
